:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --dark: #2d3436;
    --darker: #1a1e2b; /* 加深背景色 */
    --light: #f5f6fa;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #ff7675;
    --info: #74b9ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0c1027, #2d1959); /* 增强渐变深度 */
    color: var(--light);
    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px; /* 增加内边距 */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15); /* 加深分隔线 */
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5); /* 添加微光效果 */
}

.logo i {
    color: var(--primary);
    margin-right: 12px; /* 增加间距 */
    font-size: 28px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 42px; /* 稍大尺寸 */
    height: 42px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.3); /* 添加发光效果 */
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 9px 18px; /* 增大按钮尺寸 */
    border-radius: 6px; /* 圆角增大 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25); /* 增强阴影 */
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-3px); /* 增加悬停位移 */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.tabs {
    display: flex;
    margin-bottom: 25px; /* 增加下边距 */
    background: rgba(30, 33, 57, 0.7); /* 加深背景 */
    border-radius: 10px; /* 增大圆角 */
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* 添加阴影 */
}

.tab {
    flex: 1;
    text-align: center;
    padding: 13px 0; /* 增加内边距 */
    cursor: pointer;
    border-radius: 8px; /* 增大圆角 */
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--primary);
    font-weight: 500;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.5); /* 激活状态发光 */
}

.tab:hover:not(.active) {
    background: rgba(108, 92, 231, 0.25); /* 加深悬停背景 */
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease; /* 添加淡入动画 */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 22px; /* 增大字体 */
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 12px; /* 增加间距 */
    color: var(--secondary);
    font-size: 24px; /* 增大图标 */
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); /* 增加卡片宽度 */
    gap: 25px; /* 增加间距 */
    margin-bottom: 35px;
}

.card {
    background: rgba(35, 38, 58, 0.85); /* 加深卡片背景 */
    border-radius: 12px; /* 增大圆角 */
    padding: 25px; /* 增加内边距 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* 增强阴影 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 平滑动画 */
    border: 1px solid rgba(108, 92, 231, 0.15); /* 添加边框 */
}

.card:hover {
    transform: translateY(-8px); /* 增加悬停上浮 */
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); /* 悬停增强阴影 */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px; /* 增加间距 */
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15); /* 加深分隔线 */
}

.card-title {
    font-size: 19px; /* 增大字体 */
    font-weight: 500;
    color: var(--secondary);
}

.card-date {
    font-size: 13px;
    color: #aaa;
}

.card-content {
    margin-bottom: 18px;
    line-height: 1.7; /* 增加行高 */
}

.card-actions {
    display: flex;
    gap: 12px; /* 增加间距 */
}

.form-group {
    margin-bottom: 20px; /* 增加间距 */
}

label {
    display: block;
    margin-bottom: 10px; /* 增加间距 */
    font-weight: 500;
    color: var(--secondary); /* 使用主题色 */
}

input, textarea, select {
    width: 100%;
    padding: 14px; /* 增加内边距 */
    border-radius: 8px; /* 增大圆角 */
    background: rgba(25, 29, 45, 0.9); /* 加深背景 */
    border: 1px solid rgba(108, 92, 231, 0.2); /* 添加边框 */
    color: var(--light);
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

textarea {
    min-height: 140px; /* 增加高度 */
    resize: vertical;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3); /* 添加聚焦发光 */
}

.notification {
    position: fixed;
    top: 25px; /* 调整位置 */
    right: 25px;
    padding: 18px 24px; /* 增加内边距 */
    border-radius: 10px; /* 增大圆角 */
    background: var(--darker);
    border-left: 4px solid var(--primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* 增强阴影 */
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 平滑动画 */
}

.notification.show {
    transform: translateX(0);
}

.notification-title {
    font-weight: 600; /* 加粗字体 */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.notification-title i {
    margin-right: 10px; /* 增加间距 */
    color: var(--primary);
    font-size: 18px; /* 增大图标 */
}

.notification-content {
    font-size: 15px; /* 增大字体 */
    color: #ddd; /* 提高可读性 */
}

.status-badge {
    padding: 5px 12px; /* 增加内边距 */
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-top: 12px;
}

.status-pending {
    background: rgba(253, 203, 110, 0.25); /* 加深背景 */
    color: var(--warning);
}

.status-processed {
    background: rgba(0, 184, 148, 0.25); /* 加深背景 */
    color: var(--success);
}

.empty-state {
    text-align: center;
    padding: 50px 25px; /* 增加内边距 */
    color: #aaa;
}

.empty-state i {
    font-size: 52px; /* 增大图标 */
    margin-bottom: 25px;
    color: var(--secondary);
    opacity: 0.7;
}

.empty-state p {
    margin-top: 15px;
    font-size: 16px;
}

.dashboard-button {
    display: inline-block;
    padding: 14px 28px; /* 增大尺寸 */
    margin: 15px;
    background: linear-gradient(to right, var(--primary), #8a78f0); /* 添加渐变 */
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 17px; /* 增大字体 */
    font-weight: 500;
    border-radius: 8px; /* 增大圆角 */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.4); /* 增强阴影 */
}

.dashboard-button:hover {
    background: linear-gradient(to right, #7b6cf0, #9d8cff); /* 悬停渐变 */
    opacity: 0.95;
    transform: translateY(-4px); /* 增加位移 */
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.5);
}
/* 新增对战页面样式 */
.battle-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a0a2e, #0c1027);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid rgba(108, 92, 231, 0.3);
    min-height: 300px;
}

.battle-card {
    position: relative;
    padding: 40px 30px;
    overflow: hidden;
    height: 100%;
}

.battle-glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(162, 155, 254, 0.2) 0%, transparent 70%);
    animation: rotateGlare 20s linear infinite;
    z-index: 0;
}

.battle-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(162, 155, 254, 0.3);
}

.battle-header h3 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, #a29bfe, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
    letter-spacing: 1px;
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00b894;
    box-shadow: 0 0 15px #00b894;
    animation: pulseGlow 2s infinite alternate;
}

.status-indicator.active {
    background: #00b894;
}

.battle-description {
    background: rgba(25, 15, 45, 0.7);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    position: relative;
    overflow: hidden;
}

.battle-description::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    animation: scanLine 3s infinite linear;
}

.battle-description p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    z-index: 2;
}

.battle-description p i {
    margin-right: 12px;
    color: var(--secondary);
    width: 24px;
    text-align: center;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(162, 155, 254, 0.5);
}

.battle-button {
    position: relative;
    display: inline-block;
    padding: 20px 50px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 1px;
}

.battle-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.7);
    background: linear-gradient(45deg, #7b6cf0, #9d8cff);
}

.battle-button:active {
    transform: translateY(0) scale(0.98);
}

.battle-button i {
    margin-right: 15px;
    font-size: 24px;
}

.button-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes rotateGlare {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px #00b894;
    }
    100% {
        box-shadow: 0 0 20px #00b894;
    }
}

@keyframes scanLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tabs {
        flex-wrap: wrap;
        border-radius: 8px;
    }

    .tab {
        flex: 1 0 45%;
        margin-bottom: 6px;
        padding: 12px 0;
    }
    
    .dashboard-button {
        width: 100%;
        margin: 10px 0;
    }
}